//app.js
App({
  onLaunch: function(res) {
    this.pageInfo = res;
    //调用API从本地缓存中获取数据
    require('./utils/welogin').prepare(this, {
      expiredLoginCodeMap: ''
    });
    //设置我系统信息
    this.globalData.systemInfo = wx.getSystemInfoSync();
  },
  onShow(res) {
    if (res.shareTicket) {
      this.pageInfo = res;
    } else {
      this.pageInfo.shareTicket = null;
    }
    console.log("app onshow start : res ", res, " pageInfo ", this.pageInfo);
  },
  globalData: {
    systemInfo: null
  }
})